package main;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;

import model.SettingsMap;

import panel.ContentPanel;
import panel.NavPanel;

public class MainFrame extends JFrame {

	private static final long serialVersionUID = 1L;
	
	public static final SettingsMap ApplicationSettings = new SettingsMap("AppSettings.txt");

	public static JPanel screen;
	public static ContentPanel contentPanel;
	
	
	protected static void createAndShowGUI() {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			
		} catch (Exception e){}
		
		JFrame frame = new JFrame("Snowfox Panel");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		JPanel navPanel = new NavPanel();
		contentPanel = new ContentPanel();
		
		screen = new JPanel();
		screen.add(navPanel);
		screen.add(contentPanel);

		frame.setContentPane(screen);
		
		frame.pack();
		frame.setVisible(true);
		
		
	}
	
	public static void main(String[] args) {
		 javax.swing.SwingUtilities.invokeLater(new Runnable() {
	            public void run() {
	                createAndShowGUI();
	            }
	        });

	}




}
